<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddColumnAttributeInItemTable extends AbstractMigration
{
    public function up()
    {
        $this->table("item")->addColumn("attribute", 'integer',
            ['limit' => 5, 'default' => 1, 'comment' => '属性:1.公开,2.私有']
        )->save();
    }

    public function down()
    {
        $this->table("item")->removeColumn("attribute")->save();
    }
}
